package com.dhecp.project.business.domain;

import java.util.Date;

import com.dhecp.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 库存查询 实体类
 * @author DH-lwl
 * @version 2019年12月10日
 */
public class StockOn extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	private String guid;		//库存表唯一值
	private String cid;			//存货公司编码
	private String pcid;		//采购公司编码
	private String htGuid;		//销售合同GUID
	private String htBid;		//销售合同单号
	private String cgGuid;		//采购合同GUID
	private String cgBid;		//采购合同单号
	private String gcGuid;		//工程任务GUID
	private String gcBid;		//工程任务单号
	private String rkGuid;		//入库GUID
	private String rkBid;		//入库单号
	private String gDepot;		//存货仓库编码
	private String vHJ;			//货架
	private String vKcLx;		//库存类型编码
	private String gUser;		//销售员工号
	private String gDept;		//销售部门路径
	private String pUser;		//采购员工号
	private String pDept;		//采购部门路径
	private String gClient;		//客户编号
	private String gCName;		//客户名称
	private String gProvider;	//供应商编号
	private String gPName;		//供应商名称
	private String gBrand;		//品牌
	private String gID;			//型号
	private String gModel;		//规格
	private String gName;		//品名
	private String gSerial;		//系列
	private String gIndex;		//订货号
	private String gUnit;		//计量单位
	private String vKcSm;		//库存说明
	private Double bNumb;		//可用数量
	private Double gNumb;		//库存数量
	private Double gPrice;		//考核单价
	private Double fPrice;		//采购单价
	private Double fCgFpSl;		//采购税率
	private Double fHsMj;		//含税面价
	private Double fWsMj;		//未税面价
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date gDate; 		//入库时间
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dDbRq; 		//调拨日期
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dDhRq; 		//订货日期
    private String vXmBm;		//项目编码
    private String vXmMc;		//项目名称
	//虚拟字段
	private String cidName;		//存货公司
	private String pcidName;	//采购公司
	private String gDepotName;	//存货仓库
	private String vKcLxName;	//库存类型
	private String gUserName;	//销售员
	private String gDeptName;	//销售部门
	private String pUserName;	//采购员
	private String pDeptName;	//采购部门
	//视图字段
	private String vDdh;	//订单号
	private String vRaZd;	//RA主导
	private String vRaXth;	//RA系统号
	private String vRaXs;	//RA销售
	private String vTjMc;	//特价名称
	private String vTjHm;	//特价号码
	private String vDjMc;	//入库单据
	private String bUser;		//入库工号
	private String bUserName;	//入库员工
	private Double fHtDj;	//合同单价
	private Double fHtSl;	//合同数量
	private Double fHtJe;	//合同金额
	private Double fKcJe;	//库存金额
	private Double fKyJe;	//库存可用金额
	
	public String getGuid() {
		return guid;
	}
	public void setGuid(String guid) {
		this.guid = guid;
	}
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getPcid() {
		return pcid;
	}
	public void setPcid(String pcid) {
		this.pcid = pcid;
	}
	public String getHtGuid() {
		return htGuid;
	}
	public void setHtGuid(String htGuid) {
		this.htGuid = htGuid;
	}
	public String getHtBid() {
		return htBid;
	}
	public void setHtBid(String htBid) {
		this.htBid = htBid;
	}
	public String getCgGuid() {
		return cgGuid;
	}
	public void setCgGuid(String cgGuid) {
		this.cgGuid = cgGuid;
	}
	public String getCgBid() {
		return cgBid;
	}
	public void setCgBid(String cgBid) {
		this.cgBid = cgBid;
	}
	public String getGcGuid() {
		return gcGuid;
	}
	public void setGcGuid(String gcGuid) {
		this.gcGuid = gcGuid;
	}
	public String getGcBid() {
		return gcBid;
	}
	public void setGcBid(String gcBid) {
		this.gcBid = gcBid;
	}
	public String getRkGuid() {
		return rkGuid;
	}
	public void setRkGuid(String rkGuid) {
		this.rkGuid = rkGuid;
	}
	public String getRkBid() {
		return rkBid;
	}
	public void setRkBid(String rkBid) {
		this.rkBid = rkBid;
	}
	public String getgDepot() {
		return gDepot;
	}
	public void setgDepot(String gDepot) {
		this.gDepot = gDepot;
	}
	public String getvHJ() {
		return vHJ;
	}
	public void setvHJ(String vHJ) {
		this.vHJ = vHJ;
	}
	public String getvKcLx() {
		return vKcLx;
	}
	public void setvKcLx(String vKcLx) {
		this.vKcLx = vKcLx;
	}
	public String getgUser() {
		return gUser;
	}
	public void setgUser(String gUser) {
		this.gUser = gUser;
	}
	public String getgDept() {
		return gDept;
	}
	public void setgDept(String gDept) {
		this.gDept = gDept;
	}
	public String getpUser() {
		return pUser;
	}
	public void setpUser(String pUser) {
		this.pUser = pUser;
	}
	public String getpDept() {
		return pDept;
	}
	public void setpDept(String pDept) {
		this.pDept = pDept;
	}
	public String getgClient() {
		return gClient;
	}
	public void setgClient(String gClient) {
		this.gClient = gClient;
	}
	public String getgCName() {
		return gCName;
	}
	public void setgCName(String gCName) {
		this.gCName = gCName;
	}
	public String getgProvider() {
		return gProvider;
	}
	public void setgProvider(String gProvider) {
		this.gProvider = gProvider;
	}
	public String getgPName() {
		return gPName;
	}
	public void setgPName(String gPName) {
		this.gPName = gPName;
	}
	public String getgBrand() {
		return gBrand;
	}
	public void setgBrand(String gBrand) {
		this.gBrand = gBrand;
	}
	public String getgID() {
		return gID;
	}
	public void setgID(String gID) {
		this.gID = gID;
	}
	public String getgModel() {
		return gModel;
	}
	public void setgModel(String gModel) {
		this.gModel = gModel;
	}
	public String getgName() {
		return gName;
	}
	public void setgName(String gName) {
		this.gName = gName;
	}
	public String getgSerial() {
		return gSerial;
	}
	public void setgSerial(String gSerial) {
		this.gSerial = gSerial;
	}
	public String getgIndex() {
		return gIndex;
	}
	public void setgIndex(String gIndex) {
		this.gIndex = gIndex;
	}
	public String getgUnit() {
		return gUnit;
	}
	public void setgUnit(String gUnit) {
		this.gUnit = gUnit;
	}
	public String getvKcSm() {
		return vKcSm;
	}
	public void setvKcSm(String vKcSm) {
		this.vKcSm = vKcSm;
	}
	public Double getbNumb() {
		return bNumb;
	}
	public void setbNumb(Double bNumb) {
		this.bNumb = bNumb;
	}
	public Double getgNumb() {
		return gNumb;
	}
	public void setgNumb(Double gNumb) {
		this.gNumb = gNumb;
	}
	public Double getgPrice() {
		return gPrice;
	}
	public void setgPrice(Double gPrice) {
		this.gPrice = gPrice;
	}
	public Double getfPrice() {
		return fPrice;
	}
	public void setfPrice(Double fPrice) {
		this.fPrice = fPrice;
	}
	public Double getfCgFpSl() {
		return fCgFpSl;
	}
	public void setfCgFpSl(Double fCgFpSl) {
		this.fCgFpSl = fCgFpSl;
	}
	public Double getfHsMj() {
		return fHsMj;
	}
	public void setfHsMj(Double fHsMj) {
		this.fHsMj = fHsMj;
	}
	public Double getfWsMj() {
		return fWsMj;
	}
	public void setfWsMj(Double fWsMj) {
		this.fWsMj = fWsMj;
	}
	public Date getgDate() {
		return gDate;
	}
	public void setgDate(Date gDate) {
		this.gDate = gDate;
	}
	public Date getdDbRq() {
		return dDbRq;
	}
	public void setdDbRq(Date dDbRq) {
		this.dDbRq = dDbRq;
	}
	public Date getdDhRq() {
		return dDhRq;
	}
	public void setdDhRq(Date dDhRq) {
		this.dDhRq = dDhRq;
	}
	public String getCidName() {
		return cidName;
	}
	public void setCidName(String cidName) {
		this.cidName = cidName;
	}
	public String getPcidName() {
		return pcidName;
	}
	public void setPcidName(String pcidName) {
		this.pcidName = pcidName;
	}
	public String getgDepotName() {
		return gDepotName;
	}
	public void setgDepotName(String gDepotName) {
		this.gDepotName = gDepotName;
	}
	public String getvKcLxName() {
		return vKcLxName;
	}
	public void setvKcLxName(String vKcLxName) {
		this.vKcLxName = vKcLxName;
	}
	public String getgUserName() {
		return gUserName;
	}
	public void setgUserName(String gUserName) {
		this.gUserName = gUserName;
	}
	public String getgDeptName() {
		return gDeptName;
	}
	public void setgDeptName(String gDeptName) {
		this.gDeptName = gDeptName;
	}
	public String getpUserName() {
		return pUserName;
	}
	public void setpUserName(String pUserName) {
		this.pUserName = pUserName;
	}
	public String getpDeptName() {
		return pDeptName;
	}
	public void setpDeptName(String pDeptName) {
		this.pDeptName = pDeptName;
	}
	public String getvDdh() {
		return vDdh;
	}
	public void setvDdh(String vDdh) {
		this.vDdh = vDdh;
	}
	public String getvRaZd() {
		return vRaZd;
	}
	public void setvRaZd(String vRaZd) {
		this.vRaZd = vRaZd;
	}
	public String getvRaXth() {
		return vRaXth;
	}
	public void setvRaXth(String vRaXth) {
		this.vRaXth = vRaXth;
	}
	public String getvRaXs() {
		return vRaXs;
	}
	public void setvRaXs(String vRaXs) {
		this.vRaXs = vRaXs;
	}
	public String getvTjMc() {
		return vTjMc;
	}
	public void setvTjMc(String vTjMc) {
		this.vTjMc = vTjMc;
	}
	public String getvTjHm() {
		return vTjHm;
	}
	public void setvTjHm(String vTjHm) {
		this.vTjHm = vTjHm;
	}
	public String getvXmBm() {
		return vXmBm;
	}
	public void setvXmBm(String vXmBm) {
		this.vXmBm = vXmBm;
	}
	public String getvXmMc() {
		return vXmMc;
	}
	public void setvXmMc(String vXmMc) {
		this.vXmMc = vXmMc;
	}
	public String getvDjMc() {
		return vDjMc;
	}
	public void setvDjMc(String vDjMc) {
		this.vDjMc = vDjMc;
	}
	public String getbUser() {
		return bUser;
	}
	public void setbUser(String bUser) {
		this.bUser = bUser;
	}
	public String getbUserName() {
		return bUserName;
	}
	public void setbUserName(String bUserName) {
		this.bUserName = bUserName;
	}
	public Double getfHtDj() {
		if (fHtDj == null){
			return 0.0;
		}
		return fHtDj;
	}
	public void setfHtDj(Double fHtDj) {
		this.fHtDj = fHtDj;
	}
	public Double getfHtSl() {
		if (fHtSl == null){
			return 0.0;
		}
		return fHtSl;
	}
	public void setfHtSl(Double fHtSl) {
		this.fHtSl = fHtSl;
	}
	public Double getfHtJe() {
		if (fHtJe == null){
			return 0.0;
		}
		return fHtJe;
	}
	public void setfHtJe(Double fHtJe) {
		this.fHtJe = fHtJe;
	}
	public Double getfKcJe() {
		if (fKcJe == null){
			return this.gNumb * this.gPrice;
		}
		return fKcJe;
	}
	public void setfKcJe(Double fKcJe) {
		this.fKcJe = fKcJe;
	}
	public Double getfKyJe() {
		if (fKyJe == null){
			return this.bNumb * this.gPrice;
		}
		return fKyJe;
	}
	public void setfKyJe(Double fKyJe) {
		this.fKyJe = fKyJe;
	}
	
}
